package com.cc.poc.jms;

import java.util.Map;

import com.cc.poc.jms.JmsContent.JmsItem;

import net.ser1.stomp.Listener;

public class StompMessageListener implements Listener {

	@SuppressWarnings("rawtypes")
	@Override
	public void message(Map headers, String message) {
		System.out.println("Got a message...");
		JmsItem item = new JmsItem(headers.get("message-id").toString(), message);
		JmsContent.addItem(item);
	}
}
